﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class fashe : MonoBehaviour
{
    public Transform 发射物;
    
    bool she = true;
    // Update is called once per frame
    void Update()
    {
        if (she == true)
        {
            
            Instantiate(发射物, this.transform.position, this.transform.rotation);
            she = false;
        }
    }
    
    public void OnDrawGizmos()
    {
        Gizmos.DrawIcon(this.transform.position, "item.png", true);
    }
}
